package com.cheng.xbjy.service;

import com.cheng.xbjy.entity.Article;
import com.cheng.xbjy.entity.User;
import com.cheng.xbjy.entity.vo.Result;
import org.springframework.data.domain.Page;

import java.util.Map;

public interface ArticleService {

    Page<Article> findPage(String title, Integer page);

    void save(Article article, User loginUser);

    Map<String, Object> findDetail(Long articleId, Long userId);

    Result doFavorite(Long articleId, Long userId);

    Page<Article> findFavoritePage(String title, Integer page, Long userId);

}
